<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'booksections.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
	<h1>Book and Sources</h1>
	<logic:iterate id="test" name="loaded" property="sources" indexId="n">
    <html:link href="/abc" paramName="test" paramProperty="sourceId" paramId="sourceid">Link to source</html:link>
    <bean:write name="test" property="description"/>
	</logic:iterate>

	<h1>Book and Comments</h1>
	<logic:iterate id="test" name="loaded" property="comments" indexId="n">
    <html:link href="/abc" paramName="test" paramProperty="bookCommentId" paramId="bd">Link to source</html:link>
    <bean:write name="test" property="comment"/>
	</logic:iterate>

  </body>
</html>
